add code about database