Added support to add the uploaded picture to the database