@Override
	public boolean tableExists(String table) {
		ResultSet res = null;
		table = table.replace("#__", prefix);

		try {
			DatabaseMetaData data = this.con.getMetaData();
			res = data.getTables(null, null, table, null);

			return res.next();
		} catch (SQLException e) {

			if (this.dbg) {

				e.printStackTrace();
			}
			return false;
		} finally {
			try {
				if (res != null) {
					res.close();
				}
			} catch (Exception e) {

				if (this.dbg) {

					e.printStackTrace();
				}
				return false;
			}
		}
	}