Reverse a database to an initial model for BI-joe