Sync problem when trying to remove the database object