make database default option a proc