Refactor db layer

1. Add a part of tests for ArticleController.
2. Add a useful argument resolver to fetch desired object from json stream.