Return to old GenerateItemId method, as it requires the last rowID
Move InsertGenre to repo, fix insert genre bug