started writing the sql driver