Create model.py

Model.py python class for inserting and deleting pin representations to 
the database.