DRY when it comes to connecting to the DB