cleanup_utils: rework mysql_cleanup get_cursor to remove code
cleanup_utils: rework mysql_cleanup get_cursor to remove code

and get rid of a pylint exception at the same time

open-craft/opencraft,open-craft/opencraft,open-craft/opencraft,open-craft/opencraft,open-craft/opencraft