Library automation routines to access and update database