rest resource loaded from db