common: add db.session.close_all() to init_db() to avoid hanging