Added support for remote DB.