Fixed database problem, going to the preplan page now prints out gear(1).address