fix sql script for Travis CI