fix the bug that the getresult from db is two dim array