Fixed issue related to clearing SQLCounter log

- Added clear_log method present in ActiveRecord to test_helper.
- This method can be used to clear the log of queries.
- Fixed logic of setting log to the currently executed queries.
- Updated list of ignored queries by changing regex for PRAGMA queries.
- Made it PRAGMA same as ActiveRecord.