Only convert db port if it's there and use asint to do it (better errors if failing)