updated to create new database