changes to sqlite integration