added methods to delete and insert