DB file output fix