Sets up some db nonsense