Setting up database and array adapter.