Database automatic configuration
Db port settings added