Added new sql for the tests