separate tier0 request db and temporary db

This need further test. Please don't merge yet.