added todo and change reader so that it gets an db instance through setter