who knows if this is the right thing - might try to use sqlite 3 instead
this branch may be broken. let's not merge for now