Add a function to add authors to database