Added db insertion