Fixed exception "SQLITE_BUSY" that was cause by calling asyn sqlite methods and also not closing the connection, which seems to be a bad practice
Optimized some methods involving database
This update It's not really necesary if you don't experiment the SQLITE_BUSY exception. Also now the calls to database are sync but 'll only be called if a change was made, before every 10 minutes all the items were saved to the database