add db code
change db to goroutine sage