some controllers
added sql