Fix folder reference
Ensure folder is created before creating the database