Creating Applications, templates and db types