dynamoDB query builder