Fixed RainTPL. Move common comment code to common dir. Db fixes