Query getDealList() fails with PostgreSQL and  Namespace declaration

- Query in getDealList() fails with PostgreSQL, need to rename user alias into users
- In src\Cobalt\View\AdminDocuments\Html.php extra space which cause issue "Namespace declaration statement has to be the very first statement in the script"