Added specs to count the performed SQL queries