Finished LangDB implementation with shift() method