Getting risk from DB