This article might help - it's quite well-written by a breeder. You were on the right lines worrying about too much carbohydrates and fats. Anyway there are all kinds of interesting tips in here that might help. eg how to tell if the hamster is going hypo or hyper (ie too much sugar or not enough carbohydrate) and what to do about it.
The diabetic hamsters diet