return default image for errors
added express dependency
restructured main routines
created model to store photos
implemented db access

first check if record exists in database. if not, download it and save it in the database for later use.