PHPDoc, CS, mistake fixes and other minor improvements

@sandeepone Also need merge to Gleez repo
Here and below `Database::SELECT`, `Database::UPDATE``, etc. is string