Stored procedures are not allowed in websql.  This is terrible.  Need to find a work around