[FIX] Database selector issue

ensure_db() If the request.session.db is different than
the computed db abort and redirect in order to properly
dispatch on computed db