Created the api service to create the score table