added null handler, added folder parsing logic
drive database name from config file
refactored OAUTH scopes
cleanup