Made database_has_table() not static.