How to get custom attributes for the attributes from the custom database