Added port selection to database configuration.