start to rewrite the api using postgres backed datastore