Create function "db_query" and fix "db_create" and "db_create_table".