Modularized databaserepair a databaserepair some more needs more work though