Added code to insert call logs to the DB