BUG: Only pass check_same_thread when using sqlite.
Merge pull request #75 from quantopian/same_thread_sqlite_only

BUG: Only pass check_same_thread when using sqlite.