Add SqlBase::db_spec()

Use it instead of accessing the class variable directly.
Minor doxygen improvements