Use construct_filename in query_dbus_data_postgres for file naming

- consistent changes for code to work
- remove pathname