fixing db port select