Update OptionDao's sql for postgres support.