working insert, update, delete