Loic, would you kindly explain what are the exact rules to split code between init/3 and handle/2? Frankly speaking, I never use terminate, because I also doesn't understand what is it for, but most interesting is the question about init and handle. Where should I put database select, for example?