SQL: Rename sql in correct date