cleanup,reachedEnd()

renamed attribute database to dbName
replaced connection establishment in configure with a call to
prepareConnection (as you planned i guess)
implemented reachedEnd() (maybe)