add DomainHash elevator

allows to switch database based on domain and using a hash to find
corresponding database name for the specified domain