prevent unicode related warnings from SQLAlchemy during upgrade ("Unicode type received non-unicode bind param value")
fix upgrade script r26 if no FTP settings are available in the database
require SQLAlchemy migrate >= 0.7 and adapt batch upgrade script to API changes
update migation script r013 to prevent a deprecation warning from SQLAlchemy 0.7+ ("useexisting is deprecated. Use extend_existing.")