use logs for db file