Added probably all of the DB queries that we will need.