Build scripts to query postgres for dbus data