only logs to db is explicitly told to do it
Merge pull request #16 from BFALacerda/hydro-devel

only logs to db if explicitly told to do it