ERROR:  relation "templates" does not exist
LINE 6: SELECT 'templates', count(*) FROM templates UNION ALL
                                          ^
