add hook to reset the db when testing