mistake in makefile and need to close db after rehashing