Added $options parameter to performUpdate and performInsert