aoife build script cleaning database