Python script to import csv data into a relational database