Prelim sqlite stuff