add support for db-address and fix other db inputs from command line