Resolving database lock SQLServer