for cases like this, where code depends on the same connection to be used in code above AND in tables