changed poly_db functions to undef their client
minor changes to DatabaseCursor
documentation