moved to_database_format() to pkmnsim::database namespace and to new file database/queries.cpp