Changed plugin's name to SQL. Major changes to Mutex. Code clean-up.