add simple api error handling
store Points in local DB