@Override
	public void tableCheckAndCreate() throws SQLException {
		// http://stackoverflow.com/questions/2942788/check-if-table-exists
		Statement statement = con.createStatement();
		DatabaseMetaData dbm = con.getMetaData();
		// check if "employee" table is there
		ResultSet tables = dbm.getTables(null, null, TABLE_NAME, null);
		if (tables.next()) {
			// Table exists
		} else {

			statement
					.executeUpdate("create table "
							+ TABLE_NAME
							+ " (id INTEGER PRIMARY KEY AUTOINCREMENT, url, search_word, twitter_user_name, created_at, updated_at, note)");
			statement
					.executeUpdate("create table "
							+ TABLE_HISTORY_NAME
							+ " (id INTEGER PRIMARY KEY AUTOINCREMENT, original_id INTEGER, url, search_word, twitter_user_name, created_at, updated_at, note)");

			statement.executeUpdate("create index url_index on " + TABLE_NAME
					+ "(url);");
			statement.executeUpdate("create index url_index_history on "
					+ TABLE_HISTORY_NAME + "(url);");
		}

		statement.close();

	}