Configure database