Adding DB config file and closing some open DB connections in dao.