added: user_to_aggregates reads the inputs and stores them in a table