added has and belogns to many relationship for plates and problems
fixed references columns