Database partially working...need to finish ajax to display on screen properly