Fixed bug with getPlansForUser.
Implemented getActivities db method.