SQL script

TODO: add auto guid identifying (instead of autoincrement)