bug fixes for loading optimizations, and git log loader remake with prepared statements