Abstract the links and keywords to a struct

* Add a method to save that stuct to mongo
Fix some imports