remove a bunch of unused db stuff