solving some db mistakes and just append results to the result file.