SQL: Fix end of line