Leif Davis scores in the 89th minute to give Ipswich a 3-2 win over Bristol City that keeps them in the automatic promotion places.