In the same pan, brown the onions for about 2 minutes. Add oil, as needed. Add the garlic and cook 1 minute. Return the shanks to the pan and add the beans, tomatoes, broth, beer, molasses, bacon, and bay leaf. Lightly season with salt and pepper. Bring to boil and bake, covered, for about 2 hours.