! more $db out of the options controller