DRY out Author class: improve database connectivity, change output to return statement from stdout