void KrecipesView::initializeData( const QString &host, const QString &dbName, const QString &user, const QString &pass, int port )
{
	kDebug();
	RecipeDB * db = RecipeDB::createDatabase( dbType, host, user, pass, dbName, port, dbName );
	if ( !db ) {
		kError() << i18n( "Code error. No DB support has been included. Exiting" ) ;
		kapp->exit( 1 );
	}
	kDebug()<<" connect it";
	db->connect();
	kDebug()<<" connected ok";
	if ( db->ok() ) {
		kDebug()<<" ok";
		db->emptyData();
		kDebug()<<" db empty data";
		db->initializeData();
		kDebug()<<" initializeData";
	}

	delete db;
}
void KrecipesView::initializeData( const QString &host, const QString &dbName, const QString &user, const QString &pass, int port )
{
	kDebug();
	RecipeDB * db = RecipeDB::createDatabase( dbType, host, user, pass, dbName, port, dbName );
	if ( !db ) {
		kError() << i18n( "Code error. No DB support has been included. Exiting" ) ;
		kapp->exit( 1 );
	}
	kDebug()<<" connect it";
	db->connect();
	kDebug()<<" connected ok";
	if ( db->ok() ) {
		kDebug()<<" ok";
		db->emptyData();
		kDebug()<<" db empty data";
		db->initializeData();
		kDebug()<<" initializeData";
	}

	delete db;
}