Database connection and validator object