changed db to manage space.