Check the points being inserted to the database

Edited the POST method in default.py controller to checks the DB if the
point being inserted is already in there