Updated query_db placeholder method