Date defaults, query, table building

Also fixed slight issue in config related to earlier namespace/folder
issues.