The database was not selected properly