Add db dir
Implementation of controllers