Used csv module to parse csv file and build database