Maximum Of List Python Append Command In Sql