Inserting a million records in database - runs in 1 minute ~45 seconds.(Using a transaction)