Fix so that friend and message data is stored onto local DB