fix some function names in db scripts
nesting for function bodies in program tree
Merge branch 'master' of https://github.com/medkg15/how-to-train-your-robot