Debug code added and SQLite Improved Added