Remove doubled db operations, append initial sparce files support