Deleted old db-functions