Refactor assigned submissions data call

Added SubmissionDAO->getAssigned() which implements the logic in SQL.