Improve db:info with prefix and machine-readable output

Adds the table prefix and accepts a setting parameter that only outputs the value of one setting. Useful mostly for shell scripts, remove the need to use sed/cut/awk.