Fixed field_as_key option in Db queries