Switched dev db to postgres. Reduced some redundancy in templates and tests.