Fb fix sqlite

When trying to test the fix for issue #182, making requests just stopped working.  I ended up tracking it down to the fact that the sqlite database didn't migrate correctly from the code on master.  When looking, I think it would be best if when the database is opened, it checks to see if the tables have been created.

I never tracked down why the migrations didn't work, so if you don't deem this patch as acceptable and would like to track the other issue down, just let me know.