Fix database connection issue on travis