added dbmanager, now its able to download photos and save them