Changed the database class to only try to create a database if it doesn't already exist