separate JSON db builder
bug