Fixed issue with database not creating folder