Generate Content-MML XQueries

* First working protoype
* Database connectin still missing
* Cleanup needed!

Change-Id: I5b282489be23e25e58050058478f696fa5fa1c8e