Added database_has_table() function.