fix tingodb undefined callback error #2