check database connectivity and return result to the user #38