Update EditWaypointActivity.java

put db queries into background thread.