Fixing sqlite