SQL/Misc: Database reguid, cleanup files