create models
refactored to save new pics to the database
refactor routes