Remove cout
Fix specific postgre request problem in factory
Add a check, if no machine for instance crash with an SQL error otherwize on an empty string