Database defragmentation feature added, this fixed #1.