Fixes OpenSourceFieldlinguistics/FieldDB#1117; need to use selectSession function to switch between sessions.