update to use connection instead of session after mobyle.lib modifications