Updates web app so it handles empty data from the server

In the server, we now return an empty object if the database doesn't have
any entries. On the web app side, we check whether the data is empty.
If it is, we display the "No data" labels. Adds unit tests to test this
behaviour.