apparently one should use executemany for inserting multiple rows in the database