added border to log point icons, added getDistance function to logpoint db model