add sql formatting in query list