Finished adding and querying database