How To Fetch Data From Database In Javascript