Playing around with an idea using jQuery and databases