Added Local/Remote system for DB connection