Fix issue with links overriding. Move collecting changes to libraries-db task