config options handling; added some db inspection helpers