Inserts and Queries

Forgot to add these to initial upload