Controller and Database Connection Classes