restructured to build webapp container for every deploy but only rebuild db if needed