Adding database model and migrations
Splitting app and config apart