Added database port config/option

Now database port can be passed on the command line, and the config file. Works only on mysql for now.