Added database dialog for creating new databases and added some filedialogs.

Oh god, fuck this tooltip hack.