#13 Initial implementation of an automatic sql script + test for it