cursor and connection classes done