Testing and configuring database