Querying our database for objects