Fixed withdrawn code, SQL returns string not bool