changed db setup and slicing behavior