db structure

Signed-off-by: Michal Seč <michal.sec@gmail.com>