Set up database and resource level storage.