Add visitDatabase() to check the connection, and modify the createDatabase()