added task to drop empty databases
fixed some problems with history view