added temp files instead of absolute database