Paint application using Flask, JavaScript and PostgreSQL