change the db results to dic