added more dependencies on db.h generation #869