Create database and tables from CliApp
Add template functions to Database class
Refactor from pjdietz\restcms to pjdietz\RestCms