1. Added MySQL table name in configuration file

2. Added DEBUG logging functionality
3. Cleaned code for stability and performance.