updated output and .db