Configuring database