change: add db related function: insert, update, delete