Extract the database connection from models.pet.js to db.js