Minor fix to long option handler for --database