Adjusted db and created model to upload photos