fixed using common_oltp instead of tcs_catalog

fixed using common_oltp instead of tcs_catalog. Added check for connection object nullness in dataAccess.js