add code of database