handle_address: Separated SQL from HTML.