Verify database connectivity on startup