video dev, refactoring db