implemented insert, select, update and delete

methods for create, search, update and delete respectively
fixed update bug

fields were not totally replaced when updated because written field was
too short