Windows API db script