Replaced the missing css definitions for the image.
Removed unneccessary css links.
Made sure all information connected to a piece of equipment that is being deleted will also be deleted.
Started the process of deleting all things connected to deleted users. However, I have commented these out, because I am unsure of whether they should be deleted or preserved.