APY-57: Python 3.3 support in Ally-Py
* updated some db-related parts, incl. the new raise syntax in Python 3.3