INSERT supports annotations as objects

* INSERT query now supports annotations as objects in a relationship.
* some refactoring
* don't perform dbLookup query when keyword is too long
* improved UI experience