added sql to create db structure. Also trying out relative paths on ajax calls instead of absolute.