added an option to change the database for the inverse calculation frame