giDatabase cleanup