Fixed the issue with DELETE. UPDATE is still not working yet.