add where clauses, add ability to update existing records in apostrophe, remove unused dep