Modified table structure and implementation of SetLockTimestamp stored proc
Implementation for lock and unlock
support AppVeyor