Make sure that db_port is never empty and defaults to 3306.