added sql database structure

Signed-off-by: ra1n <root@ra1n.name>