Added delete query and refactored update builder.