Added profiles, first try to get different persistence configuration per profile.