SQL bug Fixes for ip tracker and config setup.