Experimenting with sqlalchemy in bmdb.py