replace h2 resource with postgresql