Added code changes for DB connectivity.