Abstracted register logic into database.register_model, abstracted creation of worksheets to get_or_create_worksheet