Fix database issue on travis