Added ADO based sql for better Windows platform support