change delete statment to be in one DB connection (HintsHandler)