Added cleanup SQL script
Added tests and fixes for db.del()
Added tests and fixes for db.del()