Moved onCreate and DAO creation and stuff to GenericActivity.