make database host and password optional