Fixed the problem in the database where nothing was being added to the database.