Don't close the sqlite database when reloading. Only close the database when unloading.