fix exceptions on switch for jdbc postgres
use apartment connection instead of AR