pass a callback to createDB rather than terminating the process