Merge pull request #1069 from narfbg/develop-db-select

Add an optional database name parameter to db_select()