Added picture storing to data base fucntion.