hooking up edit plan fragment to database