remove dependency and add sql