Moved Database creation from History to Windows