Use stripped username in SQL