Fixed local_db to ensure persistenceg