SELECT username FROM userdata WHERE lower(username) = lower('$username');