update ams database