Pinned the version of SQLAlchemy to 0.9.4.

The 0.9.6 version introduced a bug that broke the build.

https://bitbucket.org/zzzeek/sqlalchemy/issue/3099/get_all_pending-takes-3-positional
ui tweaks