Reads from RabbitMQ and stores in a database.