Final code. Database shifted to SD card. Instructions activity added.