removed test
added constant SQL_FAILED variable