fix sql for travis