Made API Controller neater
Added attribute query /api/inv/types/attributes/:id which returns a type with it's attributes
Restructed MySQL queries, improved readability in query files