using dynamo for json api (post and put) over postgres