Minor tweak to SQL commands