added bulkInsert for efficient bulk inserts in db