SQLite save and read (but buggy)