Added LOCK_STATUS + VERSION Check when extDB is locked etc + Misc Changes
DB_CUSTOM_V5 Fix for Output + misc changes