Bufixes

Make public $queryLastId.
Fix profile info retrieving