Updated PlanNotesActivity.java with the remote db functionality