Restructured the sql-code and comments to better fit the rest of the files