Add more stuff to db

Add width height and associated resource id to db on image upload