Db init fixed for pgsql