internal jq, SQL bug fix

built jquery into install script
fixed database setup bug