Altering the pins table, and fixing the model, controller and view