Added bool read and write functions
Storage now based on SQLite
tags file not closed after generating database
Added debug options to control tags file