read_db.c and db.h modified