BUG FIX + UPDATED AND DELETE FUNCTION ADDED.

Finally ended the CRUD part, will start messing up the fronted now. :)