added id to profile, fixed query and .htaccess