Sql check if record exists return true.