ndo{mod|2db}: Formatting cleanup and config refactoring.

Make ndo2db.c's formatting consistent and more (or less) readable.
Use the configuration processing macros from ndomod to simplify error
checking of config values. Explicitly set errno = 0 before using it to
check the results of strto*() functions.