Add database connection class.