Add insert in DB code, but it's not working. Need to debug and fix