Preparing the system for database interaction (first step was to give
everything a uniquely identifiable key)