IMplement query management for a database and implement YML format as a reference