Added Database class with interfaces to handle all network calls.