Move configuration_for_database to public section of class
Add query method to runtime
Rework the domgen integration to use the query primitive