Update libdb.c

INSERT and SERACH