refactored Optionable concern to use a direct SQL query

Circumvent the creation of `ActiveRecord` objects.