added connect error message
terminate application when database connection fails
properly handle lat/lon ref
disabled map save dialog