fixing sqlite err