added the ability to uplaod photos into the db form the web