javascript pt 2 and databases hw