Used Gii code generator to get code generation based off database