Add docstring.
Close cursor.
Fix cast of number column.