cppcheck performance fixes in dbwrappers/

This is another round of fixes for the files under dbwrappers/

I hope you are okay with me removing string initializations. But since strings do default to an empty string when not initialized, I assume that it's redundant to initialize them again.