added method to accept data from url json to database