tweaks to index and chown tool to make them compile with new db backend