Allow app to access database