setting the url to a function in a custom module
The page callback must be the name of the function that will return the data from database

You must create a function like this :

function my_callback(){
// here you will connect and pull up data from the database
return $your_data;
}


Also don't forget to clear the cache and read about the database API here