Now can process data and ourput results into the database.