now gets database credentials from config file
changed config file to cmdline args, which makes more sense