added get_listener_count to postgres db