add query_record for easy work with db records like orm