flask models and base controller init