fixing sqlite integration