created query builder, progress with department creation