Fix sqlite environment