close statement after checking if tables exist
Merge branch 'fb_fix_sqlite' into clx_dev