fix json read bug
refactor DB interaction
setup new namespace for schnippel lib, move scripts correspondingly