fixed joining options for lookup & database options