NPE when creating db on postgres (#386).