getting Intent from another activity

This class gets intent passed from another activity and uses database to plot is
data