move rabbitmq connection to config