Fix errors to include stack trace + augment config parameters to sql-database