reset database
Renamed connect to authorize. Improved documentation.