fixes, adding active set in db