Added namespaces, use cinfig object rather than hardcode db configs
Get config from app config