As evident, this is first time I am writing perl with SQLite, hence the inefficiency. I have done the profiling and got
1.DBI::st::execute as major time consumer.
2. DBD::SQLite::st::_prepare
3.DBI::_setup_handle.
Please suggest ways to reduce the time.