Add support for generating sqlite files during repo metadata generation

Also, replace the recursive symlink for packagedir from the treeinfo file with a real directory with symlinks to all the content files