(#1261) - switch to sublevel instead of a folder of dbs, also fix some ids issues