Added SQL Schema from upstream commit 0301f5a
Added baseURL variable to mainscript.js