Fixed #3489: Database settings moved to separate file. Main.php and console.php just include it