minimize images and remove DB