Addition of Database Queries

Added the queries for the database.

Just need you to sign off @cjwhite92