fix column order from db