! A bit of formatting cleanup
! wrong casting in db query
! break the profile stuff out as a seperate files(s) to clean up install.xml