added delete record method
fixed table attributes and update method