Make backups regularly and store them outside your device. You can backup the entire database in SQLite format or tables in CSV format. Go to Menu, Databases, choose one and the press Backup.
The backup does not include the files that may have been included in the database, such as photos, PDF files, etc. The database only includes the name of the files to show them, not the files themselves.