Minor update to db module

Checked all functions using string formatting rather than concatenation