Fixed very minor SQL errors