get out csv file from database