add sql routes handler