paintapplication using flask and sqlite3 and javascript