adding sql windows ... needs refactor