SELECT 'CREATE DATABASE sova_cabinet_test OWNER sova_test'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'sova_cabinet_test')\gexec
SELECT 'CREATE DATABASE redmine_test OWNER sova_test'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'redmine_test')\gexec
