allowing custom database port to be used in configuration file

by reading retrieving via getint rather than raw. adding to example config file