Use tie instead of dbmopen for the library database