core: python2.6 compatibility

With sqlalchemy squeeze version, database_helper raise a TypeError