fix reload
fix encoding issues with sqlite