card-creator new database format and functions