create endpoint in the backend with flask, sqlalchemy, and send code with mongodb and rabbitmq to run tasks inside another docker