pgsql precreate tables