Create a db session for the consumer.