configuring database