adding ability to add to database after taking a picture