Calss method CSV

how can i create a class method to read CSV and save them ito DB?