code changes for Database connectivity