paint app using flask with mongodb as database