consolidating author class access to database