Star products and formal connections