added code to let the program create the database using an initializer