more sql-related updates.