importing CSV to database and creating controller