break up database migration script into some general helper modules, as well as a module separating the database migration steps from the primary script. also work on migrating LibraryWells (for both source plates and primary plates)