sqlite fixes