db, debugging and glutils cleanup.