corrected bug in activation, duplicate template paths added to db