added sql connecting unit