Added flaskapp views method for returning list of db entries given a query.