Configure DB and RabbitMQ connection