Adding distributions to database + return json object to client