Fix a bug in travis ci and database yml.