Basic tab completion implementation with trivial database