Insert Connection string into config file & some fixes