Changed standard port
Moved settings evaluation out of constructor
Added Database connection