setting up DB process