Python code creates a database from .csv