Added optional port fields to database configuration forms.