update insertDiv and pullfromdatabase