sets up db