removed unneeded code in db.c