Added insert to db code