Added sql structure to repos

Signed-off-by: Chris Moss <chris@uniontech.co.uk>