Does Omeka suits me?

I seek advice on whether Omeka might be a good solution for a project I'm running. Apologies if I'm writing on the wrong topic-forum.

I need a public storage for historical documents transcribed and marked up in xml, which needs to be full text searchable. And I think this is perfectly fine with Omeka.
Then, I would like to expand the search facility, making use of Xquery (or possibly an external XML database) to narrow searches, and an SQL database containing authority files for documents' contents.
For example, if in the SQL database I have a list of names of persons, I wish this list to be displayed, let's say in a drop down menu, and then to query the documents accordingly in predefined ways.
I basically wish to know if the logic for these tasks can be easily integrated within Omeka.
Thanks!