Set up DB correctly.