bugfix: DB_PORT was not used in one of db_connect calls