Changed database to record spaces instead of dirt