Fixed issue reported by Garret with check for remote db existance