Add Model Layer, try to separate database operation out of Actions.