workaround for #40

sqlalchemy was supposed to take care of stuff like this, further investigation
is required to find a long term solution.