Add query before beginning transaction to ensure a fresh db connection