exec dbname should be configurable