added error handling, changed to zip from tar.gz, updated config to check for database creds, etc