revised db tutorial