database connection for trips