added posibility to use external postgreSQL database to store results of bandwidthd

This patch allows the user to store the results of bandwidthD not just in a local file but also in an external postgreSQL database.