Making Postgres queues scale