tweak for db sessions