Database type selector

Following on from pull request #3, I have enhanced the query lookup mechanism to take into account the (new) configuration parameter `database.type`; when looking up a named query, substeps will first attempt to find a query with the given name and a suffix `.${database.type}`. If such a query definition exists, it will be used, otherwise the "plain" name will be looked up (as before)