[LinkDump]: Fixed database query error