db connect to CMS