updated populate_library_tables