function findListingsByQuery(query) {
  return db("amenities").where(query);
  {
    /**
  query is an object of key value pairs 
  the where(~mixed~) syntax breaks the query object down
   into "where a and b and c.." constraints
  knex.where({k:v,k2:v2,k3:v3})===where k=v and k2=v2 and k3=v3 
*/
  }
}
//find by lat/lon   findby date   findyby amenities
find by lat/lon   findby date   findyby amenities
find by lat / lon findby date findyby amenities
function findListingsByQuery(query) {
  return db("amenities").where(query);
  {
  }
}
function findListingsByQuery ( query ) { return db ( "amenities" ) . where ( query ) ; { } }
find by lat/lon   findby date   findyby amenities
find by lat / lon findby date findyby amenities
/**
  query is an object of key value pairs 
  the where(~mixed~) syntax breaks the query object down
   into "where a and b and c.." constraints
  knex.where({k:v,k2:v2,k3:v3})===where k=v and k2=v2 and k3=v3 
*/