adding way to query db