Set database to get shared preferences from.