added update hook to create map table