Prior to updating sysdatabases entry for database