In a large skillet, cook beef and onion; drain. Add garlic and cook for 1-2 minutes longer. Stir in sugar, flour, and pepper. Add ketchup, mustard, bbq, and worchestershire sauce. Bring to a boil. Reduce heat, cover and cook for 5 - 10 minutes or until heated through. Serve on buns with optional cheese and pickles.