Added functions for adding in data to database and grabbing data from the database