Started tearing apart bmdb

working on adding sqlalchemy stuff :)