removed database connection check