New version of the db.vhd seems to be working.