db migration fixes for travis ci