cleaning up the code after switching to redis locks
Merge pull request #213 from bitzesty/database-locks-cleanup

cleaning up the code after switching to redis locks