sqlite3 reader ref: http://qiita.com/nnabeyang/items/046651a79025faa2d84d