add suppport for postgres

Also adds a port setting to the config files for Mysql and Postgres