Modified HTML pages to interact with DB, and added loading indicator