Fix typo, add conditional db creation.