Added sqlite support, fixed bug of untitled files.