Update SQLAlchemy; simplify code to get buildings

It's much easier to do this in Python instead of using crude SQL queries
for it. We need to retrieve all rooms anyway, so there's no gain in
letting the database associate rooms with buildings...

Also add a missing `return false` in the onclick handler to change the
map aspect which caused an ugly # to be appended to the url.