Downloading of pictures is improved. Database file is added too.