removed obsolete sql