moved th dynamoDB stuff into a service