Quick system function to pull out the current database.
I've used this a number of times to allow stored procedures to find out
where they are. Especially useful for those that do logging or hit a
remote server.
It's called current_database() to match with current_user().