Wrap app db creation in an if-statement to check for Pillar values