retrive options from db