added query_one to Database