Removed db attempt, added js for ajax