Added databaseExist method