Refactor db

Removed file_version_id and key block rows by item_id and file_version