hsite: Track inserted files in DB.
hsite: Working on conditional inserts.