better sql formatting