json control added, fixing db structure