Fix ReadOnlyDatabaseTest class

Ensure the insertion is performed only one time