adding images upload info to db