lib MDL-25532 added dbport handling for during db creation