Add mongoose config. Add base controller