init app and create models