update resources to use db ids instead of meaningful ids