setting up db connection stuff