Typescript Nested Functions Mysql Tutorial Sample