better SQL formatting