General routines:
this function is used to open new forms in the application.
with this function you set the database you want as the one to be used by your app.