change to use dbic orm
change auth to get data using dbic
change ns from MyAPP to MyApp
some changes